#include "junix.h"
using namespace std;

int main(int argc, char **argv)
{
	vector<int> vi(20);
	generate(vi.begin(), vi.end(),
			boost::bind(modulus<int>(), boost::bind(rand), 20));
	partial_sort(vi.begin(), vi.begin()+10,vi.end());
	copy(vi.begin(), vi.end(),
			ostream_iterator<int>( cout, " "));
	cout<<endl;
}
